﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class Nieuws2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ButtonStudentNr_Click(object sender, EventArgs e)
        {
            int studentNummer = Convert.ToInt32(TextBoxStudentNr.Text);
            WebServiceStudentData webServiceStudentData = new WebServiceStudentData();
            GridViewStudentData.DataSource = webServiceStudentData.GetStudentData(studentNummer);
            GridViewStudentData.DataBind();
        }
    }
}